﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI
{
    public class SingleResult<T> : ServiceResult
    {
        public T Data { get; private set; }

        public SingleResult(T data)
            : base()
        {
            Data = data;
        }

        public SingleResult(bool isSuccess, int errorCode, string message, T data)
            : base(isSuccess, errorCode, message)
        {
            Data = data;
        }
    }
}
